package com.lvan.bean;

import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import com.lvan.util.CustomTimeSerializer;
import com.lvan.util.DateUtil;

/**
 * @author Stern He<br>
 * 2013-9-17<br>
 * @version 1.0.0.0 
 */
public class GoodsLog extends AdvanceEntity {
	private static final long serialVersionUID = 4664649060110053930L;
	private int goodsLogId;
	private Integer goodsId;
	private String goodsColumn;
	private String goodsOldValue;
	private String goodsNewValue;
	@DateTimeFormat(pattern=DateUtil.DATAFORMAT_ALL)
	private Date streamDate;
	private String streamOp;
	private String streamWhy;
	
	public GoodsLog(Integer goodsId, String goodsColumn, String goodsOldValue,
			String goodsNewValue, Date streamDate, String streamOp,
			String streamWhy) {
		super();
		this.goodsId = goodsId;
		this.goodsColumn = goodsColumn;
		this.goodsOldValue = goodsOldValue;
		this.goodsNewValue = goodsNewValue;
		this.streamDate = streamDate;
		this.streamOp = streamOp;
		this.streamWhy = streamWhy;
	}
	public int getGoodsLogId() {
		return goodsLogId;
	}
	public void setGoodsLogId(int goodsLogId) {
		this.goodsLogId = goodsLogId;
	}
	public Integer getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}
	public String getGoodsColumn() {
		return goodsColumn;
	}
	public void setGoodsColumn(String goodsColumn) {
		this.goodsColumn = goodsColumn;
	}
	public String getGoodsOldValue() {
		return goodsOldValue;
	}
	public void setGoodsOldValue(String goodsOldValue) {
		this.goodsOldValue = goodsOldValue;
	}
	public String getGoodsNewValue() {
		return goodsNewValue;
	}
	public void setGoodsNewValue(String goodsNewValue) {
		this.goodsNewValue = goodsNewValue;
	}
	@JsonSerialize(using = CustomTimeSerializer.class)
	public Date getStreamDate() {
		return streamDate;
	}
	public void setStreamDate(Date streamDate) {
		this.streamDate = streamDate;
	}
	public String getStreamOp() {
		return streamOp;
	}
	public void setStreamOp(String streamOp) {
		this.streamOp = streamOp;
	}
	public String getStreamWhy() {
		return streamWhy;
	}
	public void setStreamWhy(String streamWhy) {
		this.streamWhy = streamWhy;
	}
}
